﻿namespace IService.Front
{
    public interface IRecycleReqService : IBaseService<TRecycleReq>
    {
        /// <summary>
        /// 添加或修改
        /// </summary>
        /// <param name="par"></param>
        /// <returns></returns>
        Task<RM_ApiResult> AddOrUpdate(TRecycleReq par);

        Task<RM_ApiResult> GetPageByCurrent(int pageNo, int pageSize);

        /// <summary>
        /// 获取详情
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        Task<RM_ApiResult> GetItem(int key);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<RM_ApiResult> Delete(int id);
    }
}